<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>\</title>
</head>
<body>

<p>点击按钮，测试带有 break 语句的循环。</p>
<button onclick="myFunction()">点击这里</button>
<p id="demo"></p>
<script>
    function myFunction(){
        var x = 0;
        var arr = (5, 7, 30, 26, 18, 9, 35, x);
        x = 14;

        for (var i = 0; i <= 9; i++) {
            if (x == i) {
                x = i;
            }
        }

        var arr2 = new Array();

        for (var i = 0; i < arr.length-1; i++) {
            for (var j = 1; j < arr.length; i++) {
                for (var m = 2; m < arr.length; m++) {
                    if (arr[i] + arr[j] == arr[m]) {
                        var arr3 = new Array(arr[i],arr[j],arr[m]);
                        arr2.concat(arr3);
                    }
                }
            }
        }

        for (var i=0;i<arr2.length;i++){
            window.alert(arr2.toString());
        }

    }
</script>

</body>
</html>